package com.oa.dao.impl;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.oa.base.BaseDaoImpl;
import com.oa.dao.ApproveInfoDao;
import com.oa.entity.ApproveInfo;

/**
 * @author FengMengHuo
 * 这是 审批 实现类
 */
@Repository("approveInfoDao")
public class ApproveInfoDaoImpl extends BaseDaoImpl<ApproveInfo> implements ApproveInfoDao {
	@SuppressWarnings("unchecked")
	public List<ApproveInfo>  uniqueResultEntitys(String hql, Object... objects) {
		Query q = getSession().createQuery(hql);
		for (int i = 0; i < objects.length; i++) {
			q.setParameter(i, objects[i]);
		}
		return  q.list();
	}
}
